﻿
namespace Atha
{
	public class TestScriptsWriter : ITestScriptsWriter
	{
		private readonly ITestScriptWriter _testScriptWriter;

		/// <summary>
		/// Initializes a new instance of the <see cref="TestScriptsWriter"/> class.
		/// </summary>
		/// <param name="testScriptWriter">The test script writer.</param>
		public TestScriptsWriter(ITestScriptWriter testScriptWriter)
		{
			this._testScriptWriter = testScriptWriter;
		}

		/// <summary>
		/// Saves the scripts.
		/// </summary>
		/// <param name="scripts">The scripts.</param>
		public void SaveScripts(ITestScript[] scripts)
		{
			foreach (var script in scripts)
			{
				this._testScriptWriter.SaveScript(script);
			}
		}
	}
}
